package com.pactera.madp.cp.api.feign;

import com.pactera.madp.common.core.constant.SecurityConstants;
import com.pactera.madp.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * RemoteWorkEmployeeSynService
 *
 * @author jun
 * @version 1.0
 * 2021/8/20 11:15
 **/
@FeignClient(contextId = "remoteWorkEmployeeSynService",value = ServiceNameConstants.CP_SERVICE)
public interface RemoteWorkEmployeeSynService {

    @PostMapping("/work-employee/syn")
    void onAsyncEmpStatistic(@RequestHeader(SecurityConstants.FROM) String from);

}
